<template>
  <div>
    <!-- 标题 -->
    <div class="title">
        <img src="../../../assets/images/tool.png" alt="">
        <span>企业机构信息</span>
    </div>

    <!-- 内容 -->
    <div class="dataList">
      <el-form ref="form" :model="form" label-width="auto">
        <el-row> 
          <el-col :span="12">
            <el-form-item label="是否有专门安全机构">
              <el-radio-group v-model="form.resource">
                <el-radio label="是"></el-radio>
                <el-radio label="否"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col> 
          <el-col :span="12">
            <el-form-item label="安全管理机构成立文号">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>  
        </el-row>
        <el-row> 
          <el-col :span="12">
            <el-form-item label="安全管理机构名称">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col> 
          <el-col :span="12">
            <el-form-item label="安全管理机构成员数量">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>  
        </el-row>
        <el-form-item label="安全管理机构职责">
              <el-input autosize  v-model="form.name"></el-input>
        </el-form-item>

        <!-- 下一步按钮 -->
        <el-form-item class="middle">
            <el-button type="primary" @click="onSubmit" plain>保存</el-button>
            <el-button type="primary" @click="nextTo">下一步</el-button>
        </el-form-item>


      </el-form>
    </div>


  </div>
</template>

<script>
export default {
  data(){
    return{
       form: {
         name: '',
       }

    }
  },
  methods: {
      nextTo(){
        this.$parent.next();
      }
  }
}
</script>

<style lang="scss" scoped>
.title{
  display: flex;
  padding: 14px;
  border-bottom: 1px solid #D3D3D3;
  span{
    margin-left: 10px;
  }
}

.dataList{
  padding: 20px;
}



.middle{
  display: flex;
  justify-content: center;
}

</style>